<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <title>添加企业客户信息</title>
    <!-- Tell the browser to be responsive to screen width -->
    <meta content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no" name="viewport">
    <!-- Bootstrap 3.3.7 -->
    <!--link导入外部的css，js样式，如果导入的资源和本页面在同一个文件夹下，直接文件名即可-->
    <link rel="stylesheet" th:href="@{/asserts/bower_components/bootstrap/dist/css/bootstrap.min.css}">
    <!-- jQuery 3 -->
    <script th:src="@{/asserts/bower_components/jquery/dist/jquery.min.js}"></script>
    <!-- Bootstrap 3.3.7 -->
    <script th:src="@{/asserts/bower_components/bootstrap/dist/js/bootstrap.min.js}"></script>
    <!-- Font Awesome -->
    <link rel="stylesheet" th:href="@{/asserts/bower_components/font-awesome/css/font-awesome.min.css}">
    <!-- Ionicons -->
    <link rel="stylesheet" th:href="@{/asserts/bower_components/Ionicons/css/ionicons.min.css}">
    <!-- DataTables -->
    <link rel="stylesheet" th:href="@{/asserts/bower_components/datatables.net-bs/css/dataTables.bootstrap.min.css}">
    <!-- Theme style -->
    <link rel="stylesheet" th:href="@{/asserts/dist/css/AdminLTE.min.css}">
    <!-- AdminLTE Skins. Choose a skin from the css/skins
         folder instead of downloading all of them to reduce the load. -->
    <link rel="stylesheet" th:href="@{/asserts/dist/css/skins/_all-skins.min.css}">

    <!-- HTML5 Shim and Respond.js IE8 support of HTML5 elements and media queries -->
    <!-- WARNING: Respond.js doesn't work if you view the page via file:// -->
    <!--[if lt IE 9]>
    <script src="https://oss.maxcdn.com/html5shiv/3.7.3/html5shiv.min.js"></script>
    <script src="https://oss.maxcdn.com/respond/1.4.2/respond.min.js"></script>
    <![endif]-->

    <!-- Google Font -->
    <link rel="stylesheet"
          href="https://fonts.googleapis.com/css?family=Source+Sans+Pro:300,400,600,700,300italic,400italic,600italic">
    <style type="text/css">
        .search {
            margin-top: 40px;
            margin-left: 40px;
            position: relative;
        }
    </style>

</head>
<body>


<form class="form-horizontal" method="post" th:action="@{/company/save}">
    <div class="wrapper">
        <!-- Content Wrapper. Contains page content -->
        <!-- Content Header (Page header) -->
        <section class="content-header">
            <h4>
                <i class="fa fa-edit"></i> 添加企业客户信息
            </h4>

        </section>

        <!-- Main content -->
        <section class="content">
            <div class="row">
                <div class="col-xs-12">
                    <div class="box">
                        <!-- /.box-header 部门列表的显示  table  表格  th/td单元个   th字体加粗，行标题-->
                        <div class="box-body">
                            <!-- <form class="form-horizontal"> -->
                            <div class="form-group">
                                <label for="coName" class="col-sm-2 control-label">*企业名称：</label>
                                <div class="col-sm-5">
                                    <input type="text" class="form-control" autocomplete="off" id="coName" name="coName"
                                           required>
                                </div>
                            </div>
                            <div class="form-group">
                                <label class="col-sm-2 control-label">*企业性质：</label>
                                <div class="col-sm-5">
                                    <select class="form-control" name="coType" required>
                                        <option value="">--请选择--</option>
                                        <option value="私企">私企</option>
                                        <option value="国企">国企</option>
                                    </select>
                                </div>
                            </div>
                            <div class="form-group">
                                <label class="col-sm-2 control-label">*所属行业：</label>
                            <div class="col-sm-5">
                                    <select class="form-control" name="coIndustry" required>
                                        <option value="">--请选择--</option>
                                        <option value="信息行业">信息行业</option>
                                        <option value="计算及服务">计算机服务</option>
                                        <option value="软件工程">软件工程</option>
                                        <option value="互联网">互联网</option>
                                        <option value="其它">其它(在备注说明)</option>
                                    </select>
                                </div>
                            </div>
                            <div class="form-group">
                                <label for="coSize" class="col-sm-2 control-label">企业规模：</label>
                                <div class="col-sm-5">
                                    <input type="text" class="form-control" autocomplete="off" id="coSize" name="coSize"
                                           >
                                </div>
                            </div>
                            <div class="form-group">
                                <label for="coAddress" class="col-sm-2 control-label">*企业地址：</label>
                                <div class="col-sm-5">
                                    <input type="text" class="form-control" autocomplete="off" id="coAddress"
                                           name="coAddress"
                                           required>
                                </div>
                            </div>
                            <div class="form-group">
                                <label  class="col-sm-2 control-label">*销售专员：</label>
                                <div class="col-sm-5">
                                    <!--<input type="text" class="form-control" autocomplete="off" id="coSeller"-->
                                           <!--name="coSeller"-->
                                           <!--required>-->
                                    <select class="form-control" name="coSeller" >
                                        <option value="null">--请选择--</option>
                                        <option th:value="${user.uid}" th:text="${user.personname}" th:each="user:${eusers}"></option>
                                    </select>
                                </div>
                            </div>
                            <div class="form-group">
                                <label class="col-sm-2 control-label">*就业专员：</label>
                                <div class="col-sm-5">
                                    <!--<input type="text" class="form-control" autocomplete="off" id="coCareer"-->
                                           <!--name="coCareer"-->
                                           <!--required>-->
                                    <select class="form-control" name="coCareer" >
                                        <option value="null">--请选择--</option>
                                        <option th:value="${user.uid}" th:text="${user.personname}" th:each="user:${jusers}"></option>
                                    </select>
                                </div>
                            </div>
                            <div class="form-group">
                                <label for="coRemarks" class="col-sm-2 control-label">备注：</label>
                                <div class="col-sm-5">
                                    <input type="text" class="form-control" autocomplete="off" id="coRemarks"
                                           name="coRemarks">
                                </div>
                            </div>
                        </div>
                        <!-- /.box-body -->
                    </div>
                    <!-- /.box -->
                </div>
                <!-- /.col -->
            </div>
            <!-- /.row -->
        </section>
        <!-- /.content -->
    </div>

    <div class="wrapper">
        <!-- Content Wrapper. Contains page content -->
        <!-- Content Header (Page header) -->
        <section class="content-header">
            <h4>
                <i class="fa fa-edit"></i> 添加企业客户联系人信息
            </h4>

        </section>

        <!-- Main content -->
        <section class="content">
            <div class="row">
                <div class="col-xs-12">
                    <div class="box">
                        <!-- /.box-header 部门列表的显示  table  表格  th/td单元个   th字体加粗，行标题-->
                        <div class="box-body">
                            <input type="text" hidden name="coContactWriterId" th:value="${session.user.uid}">
                            <div class="form-group">
                                <label for="coContactName" class="col-sm-2 control-label">联系人姓名</label>
                                <div class="col-sm-5">
                                    <input type="text" class="form-control" autocomplete="off" id="coContactName"
                                           name="coContactName">
                                </div>
                            </div>
                            <div class="form-group">
                                <label class="col-sm-2 control-label"> 性别</label>
                                <div class="col-sm-5">
                                    <select class="form-control" name="coContactGender">
                                        <option value="none" selected disabled style="display: none;">--请选择性别--</option>
                                        <option value="男">男</option>
                                        <option value="女">女</option>
                                    </select>
                                </div>
                            </div>
                        </div>
                        <div class="form-group">
                            <label for="coContactDuty" class="col-sm-2 control-label"> 职务</label>
                            <div class="col-sm-5">
                                <input type="text" class="form-control" autocomplete="off" id="coContactDuty"
                                       name="coContactDuty">
                            </div>
                        </div>
                        <div class="form-group">
                            <label for="coContactPhone" class="col-sm-2 control-label">手机号</label>
                            <div class="col-sm-5">
                                <input type="tel" class="form-control" autocomplete="off" id="coContactPhone"
                                       name="coContactPhone">
                            </div>
                        </div>
                        <div class="form-group">
                            <label for="coContactWechat" class="col-sm-2 control-label">微信</label>
                            <div class="col-sm-5">
                                <input type="text" class="form-control" autocomplete="off" id="coContactWechat"
                                       name="coContactWechat">
                            </div>
                        </div>
                        <div class="form-group">
                            <label for="coContactQq" class="col-sm-2 control-label">QQ</label>
                            <div class="col-sm-5">
                                <input type="tel" class="form-control" autocomplete="off" id="coContactQq"
                                       name="coContactQq">
                            </div>
                        </div>
                        <div class="form-group">
                            <label for="coContactEmail" class="col-sm-2 control-label">邮箱</label>
                            <div class="col-sm-5">
                                <input type="email" class="form-control" autocomplete="off" id="coContactEmail"
                                       name="coContactEmail">
                            </div>
                        </div>
                        <div class="form-group">
                            <label for="coContactRemarks" class="col-sm-2 control-label">备注</label>
                            <div class="col-sm-5">
                                <input type="text" class="form-control" autocomplete="off" id="coContactRemarks"
                                       name="coContactRemarks">
                            </div>
                        </div>
                        <div class="form-group">
                            <div class="col-sm-offset-2 col-sm-10">
                                <button type="submit" class="btn btn-info btn-lg">
                                    <i class="fa fa-check-square"></i>&nbsp;提交
                                </button>
                                <button type="reset" class="btn btn-info btn-lg">
                                    <i class="fa  fa-repeat"></i>&nbsp;重置
                                </button>
                                <a class="btn btn-info btn-lg" th:href="@{/company/findAll}">
                                    <i class="fa fa-backward"></i> 返回
                                </a>

                            </div>
                        </div>

                    </div>
                    <!-- /.box-body -->
                </div>
                <!-- /.box -->
            </div>
        </section> <!-- /.col -->
    </div>
    <!-- /.row -->
    <!-- /.content -->
    <!-- ./wrapper -->
</form>

<!-- DataTables -->
<script th:src="@{/asserts/bower_components/datatables.net/js/jquery.dataTables.min.js}"></script>
<script th:src="@{/asserts/bower_components/datatables.net-bs/js/dataTables.bootstrap.min.js}"></script>
<!-- SlimScroll -->
<script th:src="@{/asserts/bower_components/jquery-slimscroll/jquery.slimscroll.min.js}"></script>
<!-- FastClick -->
<script th:src="@{/asserts/bower_components/fastclick/lib/fastclick.js}"></script>
<!-- AdminLTE App -->
<script th:src="@{/asserts/dist/js/adminlte.min.js}"></script>
<!-- AdminLTE for demo purposes -->
<script th:src="@{/asserts/dist/js/demo.js}"></script>
<!-- page script -->
<script>
    $(function () {
        var check = function () {
            var value = $("#Pagenum").val();
            if (value > ${pb.totalPage}) {
                $("#Pagenum").val(${pb.totalPage});
            }
            if (value < 0) {
                $("#Pagenum").val(1);
            }
        }
        $("#Pagenum").keyup(check).blur(check);
    });
</script>
</body>
</html>